﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Hrm.Core
{
    public class ClassMate:Entity
    {
        [MaxLength(50)]
        [Required]
        public string Name { get; set; }
        public DateTime? Birthday { get; set; }
        public int Sex { get; set; }
        [MaxLength(200)]
        public string Address { get; set; }
        [MaxLength(1000)]
        public string ImageUrl { get; set; }
        [MaxLength(50)]
        public string Phone { get; set; }

        [MaxLength(50)]
        public string Email { get; set; }
        [MaxLength(10)]
        public string QQ { get; set; }
        [MaxLength(50)]
        public string WeChat { get; set; }
        [MaxLength(50)]
        public string Company { get; set; }
        [MaxLength(2000)]
        public string Description { get; set; }
        public virtual List<ClassMateExtention> ClassMateExtentions { get; set; }
        public virtual List<School> Schools { get; set; }
    }
}
